home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
AMOS compiler.adf
/
Examples
/
Screen_Slide.AMOS
/
Screen_Slide.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1991-06-13
|
1KB
|
44 lines
'
'
' Screen Slide Demo By Gary Symons.
' (c) Europress Software Ltd.
'
' Shows the speed of the new screen copy routine
' that's part of AMOS 1.3. It's twice as fast as the previous version!
'
' Note:To take full advantage of the new screen copy routine,
' keep the starting x pixel and width of the block divisible by 16.
' This is not as limiting as it sounds. By clever use of screen
' offsets and screen copies , scrolling games such as those made with
' TOME will be twice as fast as before! This method is used by top
' commercial games.
'
'
Hide
Unpack 5 To 1
Screen Hide 1
Screen Open 0,320,200,32,Lowres
Flash Off : Curs Off : Cls 0
Wait Vbl
Get Palette 1
Colour Back Colour(0)
View
Wait Vbl
Y1=199
Y2=200
Timer=0
Do
Y3=0
Do
Screen Copy 1,0,Y1,320,Y2 To 0,0,Y3
Inc Y3
Exit If Y3>Y1
Loop
Dec Y1
Dec Y2
Exit If Y1<0
Loop
Locate 0,10
Centre "Took"+Str$(Timer/50)+" seconds!"
Boom
While Mouse Key=0 : Wend